include "twitter.thrift"

namespace cpp com.googlecode.thriftbenchmark.twitter
namespace java com.googlecode.thriftbenchmark.twitter

typedef list<twitter.Tweet> TweetList

struct TweetSearchResult {
    1: TweetList tweets;
}

const i32 MAX_RESULTS = 100;

service TwitterService {
    void ping(),
    bool postTweet(1:twitter.Tweet tweet, 2:i64 delay);
    twitter.Tweet postAndReturnTweet(1:twitter.Tweet tweet, 2:i64 delay);
    TweetSearchResult searchTweets(1:string query, 2:i64 delay);
    oneway void zip()
}

